// file: web/controllers/hello_controller.go

package controllers

import (
	"github.com/kataras/iris/mvc"
)

// ContactController is our sample controller
// it handles GET: /hello and GET: /hello/{name}
type ContactController struct{}

var contactView = mvc.View{
	Name: "hello/contact.html",
	Data: map[string]interface{}{
		"Title":     "景彧科技 联系方式",
		"companyDetails": "成都景彧科技有限公司致力于高新技术研发，业务囊括了大众休闲娱乐游戏，专业引擎研发，应用软件开发，以及人工智能实验。",
		"companysWord": "欢迎成为景彧科技的合作伙伴。合作共赢，创新创造。",
		"connectEmail": "captainl1993@126.com",
		"connectTel": "18111226315",
		"connectLocal": "四川省成都市高新区",
		"connectTel2": "13551826731",
	},
}

// Get will return a predefined view with bind data.
//
// `mvc.Result` is just an interface with a `Dispatch` function.
// `mvc.Response` and `mvc.View` are the built'n result type dispatchers
// you can even create custom response dispatchers by
// implementing the `github.com/kataras/iris/hero#Result` interface.
func (c *ContactController) Get() mvc.Result {
	return contactView
}

